<template>
	<view class="container">
		<view class="title"><text>next-swipe-action 演示demo</text></view>
		<button type="default">绑定店铺二维码</button>
		
		<!-- 	<view class="list" v-for="(item,index) in list" :key="index">
			<next-swipe-action :btnGroup="btnGroup" :disabled="index===2 || index===4" :index="index"
				@btnClick="onclick">
				<view class="item">
					<image class="item-img"
						src="https://img0.baidu.com/it/u=2337762009,1252339875&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500">
					</image>
					<view class="item-name">{{item}}</view>
				</view>
			</next-swipe-action>
		</view> -->
	</view>
</template>
<script>
	export default {
		data() {
			return {
				list: ['李先生', '张小姐', '武sir-禁用', '黎先生', '刘sir-禁用', '欧阳小姐'],
				btnGroup: [{
						name: '修改',
						action: 'edit',
						style: {
							bgColor: '#f9ae3d'
						}
					},
					{
						name: '删除',
						action: 'del',
						style: {
							bgColor: '#ff4d4f'
						}
					},
					{
						name: '审核',
						action: 'audit',
						style: {
							bgColor: '#b7eb8f'
						}
					},
				],

			};
		},

		methods: {
			onclick(e) {
				console.log('所点击的列表索引：', e.index)
				console.log('所点击的按钮数据：', e.item)
			}
		},
	}
</script>